package br.com.skytef.webService;

public class WsInterfaceSkyTefSoapProxy implements br.com.skytef.webService.WsInterfaceSkyTefSoap {
  private String _endpoint = null;
  private String _webServiceAddress = "";
  private br.com.skytef.webService.WsInterfaceSkyTefSoap wsInterfaceSkyTefSoap = null;
  
  public WsInterfaceSkyTefSoapProxy(String webServiceAddress) {
	_webServiceAddress = webServiceAddress;
    _initWsInterfaceSkyTefSoapProxy();
  }
  
  public WsInterfaceSkyTefSoapProxy(String webServiceAddress,String endpoint) {
    _endpoint = endpoint;
    _initWsInterfaceSkyTefSoapProxy();
  }
  
  private void _initWsInterfaceSkyTefSoapProxy() {
    try {
      wsInterfaceSkyTefSoap = (new br.com.skytef.webService.WsInterfaceSkyTefLocator(_webServiceAddress)).getwsInterfaceSkyTefSoap();
      if (wsInterfaceSkyTefSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)wsInterfaceSkyTefSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)wsInterfaceSkyTefSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (wsInterfaceSkyTefSoap != null)
      ((javax.xml.rpc.Stub)wsInterfaceSkyTefSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public br.com.skytef.webService.WsInterfaceSkyTefSoap getWsInterfaceSkyTefSoap() {
    if (wsInterfaceSkyTefSoap == null)
      _initWsInterfaceSkyTefSoapProxy();
    return wsInterfaceSkyTefSoap;
  }
  
  public java.lang.String SKYTEF_RecuperarDadosFatura(java.lang.String strXMLDados) throws java.rmi.RemoteException{
    if (wsInterfaceSkyTefSoap == null)
      _initWsInterfaceSkyTefSoapProxy();
    return wsInterfaceSkyTefSoap.SKYTEF_RecuperarDadosFatura(strXMLDados);
  }
  
  
}